﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cn.Edwon.Web.Support;
using Cn.Cellula.Biz;
using Cn.Edwon.Spring;
using Cn.Cellula.Biz.Port;
using System.Reflection;

namespace Cn.Cellula.Website.Ws {
    public partial class _Code : PageSupport {
        String act = null;
        protected void Page_Load(object sender, EventArgs e) {
            act = Request.QueryString["act"];
            try {
                if (act == "list") {
                    Load2DdlJson();
                } else {
                    Response.Clear();
                    Response.Write("[]");
                }
            } catch (Exception ex) {
                log.Error(ex.Message);
                Response.Clear();
                Response.Write("null");
            }
        }
        private void Load2DdlJson() {
            String type = Request.QueryString["t"];
            String json = BizFactory.Get<ICodeBiz>().LoadCode2JskitDdl(type, null);
            Response.Clear();
            Response.Write(json);
        }
    }
}